package com.wangyk.user.controller;

import com.wangyk.rabbitmqcommon.VO.ResultVO;
import com.wangyk.rabbitmqcommon.utils.ResultVOUtils;
import com.wangyk.user.service.SleuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/sleuth")
public class SleuthController
{
    @Autowired
    private SleuthService sleuthService;

    @RequestMapping("/select_by_primary_key")
    @ResponseBody
    private ResultVO selectByPrimaryKey()
    {
        ResultVO resultVO = sleuthService.selectByPrimaryKey(1);

        return ResultVOUtils.success(resultVO);
    }
}
